/*
** main_test.c for test in /home/deberg_b//projet/Igraph/RayTracer/conf
** 
** Made by benoit debergue
** Login   <deberg_b@epitech.net>
** 
** Started on  Thu Mar 29 10:41:27 2012 benoit debergue
** Last update Mon Apr 30 21:05:38 2012 canh-kiet le
*/

#include	"rt.h"

#include	<stdio.h>

void		disp_struct(t_scene sc)
{
  printf("eye \ncoord = %f %f %f\n", sc.eye.pos.x, sc.eye.pos.y, sc.eye.pos.z);
  printf("pos = %f %f %f\n", sc.eye.rot.x, sc.eye.rot.y, sc.eye.rot.z);
  printf("fov = %d\n", sc.eye.fov);
  printf("light \ncoord = %f %f %f\n", sc.lgt[0].pos.x, sc.lgt[0].pos.y, sc.lgt[0].pos.z);
  printf("sphere \ncoord = %f %f %f\n", sc.obj[1].pos.x, sc.obj[1].pos.y, sc.obj[1].pos.z);
}

int		main(int ac, char **av)
{
  t_scene      	sc;

  if (ac != 2)
    {
      print_err("[E]rror : Need .cnf\n");
      return (1);
    }
  init_cnf(av[1], &sc);
  disp_struct(sc);
  return (0);
}
